FPO: A Framework for Predicting the Impact of Optimizations
نویسندگان
چکیده
When applying optimizations, a number of decisions are made using fixed strategies, such as always applying an optimization if it is applicable, applying optimizations in a fixed order and assuming a fixed configuration for optimizations such as tile size and loop unrolling factor. In this paper, we present a framework that enables these decisions to be made based on predicting the impact of an optimization, taking into account resources and code context. The framework consists of optimization models, code models and resource models, which are integrated for predicting the impact of applying a set of optimizations. In this paper, we focus on cache performance and present an instance of the framework for cache. Since most opportunities for cache improvement come from loop optimizations, we describe code, optimization and cache models tailored to predict the benefit of optimizations for data locality. Experimentally we demonstrate that always applying an optimization when it is safe can degrade performance. We then show the improvement of applying an optimization only when our framework indicates it will be beneficial. The accuracy of our framework ranges from 100% to 82%. We also show that our framework can be used to choose the most beneficial optimization when a number of optimizations can be applied to a loop nest. And lastly, we show that we can use the framework to combine optimizations on a loop nest. The framework is general and can be used for other problems such as determining the best order of optimizations for a code segment by providing an objective function to use with search techniques.
منابع مشابه
Blue-Noise Remeshing with Farthest Point Optimization
In this paper, we present a novel method for surface sampling and remeshing with good blue-noise properties. Our approach is based on the farthest point optimization (FPO), a relaxation technique that generates high quality blue-noise point sets in 2D. We propose two important generalizations of the original FPO framework: adaptive sampling and sampling on surfaces. A simple and efficient algor...
متن کاملQuantitative Scanning Probe Microscopy for Nanomechanical Forensics.
Atomic force microscopy (AFM) was used to assess the indentation modulus Ms and pull-off force Fpo in four case studies of distinct evidence types, namely hair, questioned documents, fingerprints, and explosive particle-surface interactions. In the hair study, Ms decreased and Fpo increased after adding conditioner and bleach to the hair. For the questioned documents, Ms and Fpo of two inks wer...
متن کاملApplication of Driving force- Pressure- State- Impact- Response (DPSIR) framework for integrated environmental assessment of the climate change in city of Tehran
Climate change is a complicated issue with many factors playing role in its formation and distribution. Considering this complication, a comprehensive and holistic approach is needed for a better understanding and management of those factors. The causal frameworks are among systemic and integrated methods for addressing the causes of environmental problems and the relationships that exist betwe...
متن کاملApplication of Driving force- Pressure- State- Impact- Response (DPSIR) framework for integrated environmental assessment of the climate change in city of Tehran
Climate change is a complicated issue with many factors playing role in its formation and distribution. Considering this complication, a comprehensive and holistic approach is needed for a better understanding and management of those factors. The causal frameworks are among systemic and integrated methods for addressing the causes of environmental problems and the relationships that exist betwe...
متن کاملA Sub Loading Surface Multilaminate Model for Elastic-Plastic Porous Media
A framework for development of constitutive models based on semi-micromechanical aspects of plasticity is proposed. The resulting of this model for material employed friction type failure criterion, sub-loading surface, and associated flow rule. This model is capable of predicting effects of the rotation of principal stress/strain axes and consequent plastic flow, induced anisotropy of strength...
متن کامل